Skip to content

Add public sha256 utils - #2139

Open
dankmeme01 wants to merge 1 commit into
mainfrom
add-public-sha256-utils
Open

Add public sha256 utils#2139
dankmeme01 wants to merge 1 commit into
mainfrom
add-public-sha256-utils

Conversation

@dankmeme01

Copy link
Copy Markdown
Member

This refactors and removes most of the internal loader/hash/hash.hpp, keeping only the very Geode-specific sha256Text method that ignores \n and \r characters.

Instead, there are now public SHA256 utils in the Geode/utils/hash.hpp header: both a stateful Sha256Hasher for incremental hashing and one-shot sha256 functions. As well as a shared Hash class, allowing users to choose whether they want a binary digest or a hex form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant